package com.iterator.mapper.wechat.wy.address;

import com.iterator.bean.wechat.wy.address.AddressBO;
import com.iterator.bean.wechat.wy.address.AddressDetailVO;
import com.iterator.bean.wechat.wy.address.AddressTemp;
import com.iterator.bean.wechat.wy.address.AddressVO;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @author: Silence_W
 * @date: 2021-01-12 19:38
 **/
public interface WxAddressMapper {


    List<AddressTemp> queryAddress(@Param("integer") Integer integer);

    String queryRegion(@Param("id") Long id);

    AddressDetailVO queryAddressDeatilById(@Param("id") Integer id);

    void updateAddressDetail(@Param("addressBO") AddressBO addressBO);

    void deleteById(@Param("id") Integer id);

    void updateAddressDetailById(@Param("addressBO") AddressBO addressBO);

    void updateDefault(@Param("b1") Boolean b1, @Param("b2") Boolean b2);

    void insertAddress(@Param("addressBO") AddressBO addressBO, @Param("userId") Integer userId, @Param("date") Date date, @Param("b2") Boolean b2);

    Integer selectId(@Param("username") String username);

    Integer selectAddressId();

}
